'''

    Live.DeviceParameter mock


'''


class DeviceParameter(object):
    def __init__( self ):
        default_value = 0.0
        value = 0.0
        original_name = 'Mock_DeviceParameterName'
        name = 'Mock_DeviceParameterName'
        min = 0
        max = 127
        is_quantized = False
        
        self._value_listener = []

    def add_value_listener(self,f):
        self._value_listener.append(f)
    def remove_value_listener(self,f)
        self._value_listener.remove(f)
    def value_has_listener(self,f):
        return f in self._value_listener

